{template "content","head"}
<!-- 主体 -->
<div id="cp_dao">
    <div id="cp_min">
        <div class="chinese">PRODUCT CENTER</div>
        <div class="english">PRODUCT  SERVICE</div>
    </div>
</div>

<!-- 左导航 -->
<div id="cp_left">
    <div id="cp_right">
        <div class="left">
            <div class="top">
                {pc:content action="category" catid="41"}
                {loop $data $r}
                <li><a href="{$r[url]}">{$r[catname]}</a></li>
                {/loop}
                {/pc}
                <div class="kuai">Express Lane</div>
            </div>
            <div class="xia">
                <li><a href="{$CATEGORYS[27][url]}">SERVICE</a></li>
                <li><a href="{$CATEGORYS[5][url]}">NEWS</a></li>
                <li><a href="{$CATEGORYS[34][url]}">ABOUT</a></li>
                <li><a href="{$CATEGORYS[39][url]}">CONTACT</a></li>
                <div class="ewm"><img src="{IMG_PATH}my/masake.jpg" alt=""></div>
            </div>
            <div class="zuixia">
                <div class="kuai">Recommendation</div>
                {pc:content action="lists" catid="41" num="5"}
                {loop $data $r}
                <li><a href="{$r[url]}"><img src="{$r[thumb]}" alt="" style="width:200px;height:125px;display: block;padding-left: 10px;"></a>
                    <span style="line-height: 35px;">{$r[title]}</span>
                </li>
                {/loop}
                {/pc}
            </div>
        </div>
        <div class="right">
            <div class="xiaonav"><span>Position：<a href="{siteurl($siteid)}">Home</a> >
               {catpos($catid, $s = ' > ')}
            </span></div>
            <div class="clear"></div>

            <div class="listBox">
                <div class="product-show-pic fl">
                    <!-- 放大镜效果 -->
                    <div id="preview" class="spec-preview"><span class="jqzoom"><img src="{if $thumb}{$thumb}{else}{IMG_PATH}wutu.jpg{/if}" width="300" height="200" /></span></div>
                    <!-- 缩略图 -->
                    <div class="spec-scroll">
                        <a href="{$previous_page[url]}" class="prev" style="display: block">PREV：{$previous_page[title]}</a>
                        <a href="{$next_page[url]}" class="next" style="display: block">NEXT：{$next_page[title]}</a>
                    </div>
                </div>
                <!-- 右侧标题简介 -->
                <div class="product-show-title">
                    <h2>{$title}</h2>
                    <div class="gr-description">
                        <li>Taxonomy：{$CATEGORYS[$catid][catname]}</li>

                        <li>Updatetime：{$updatetime}</li>
                    </div>


                    <div class="lxifans" style="width:260px;float:right;color:#ca1a1d;font-size: 20px;margin-top:30px;">
                        Tel：0755-28766866<br />Q Q:1350379986<br />WeChat：mw1350379986
                    </div>
                    <div class="product-order" style="margin-top:15px;"><a title="" href="#order">Purchase</a></div>
                </div>
                <div class="clear"></div>
                <!-- 产品说明标签切换 -->
                <script src="{JS_PATH}my/jquery.min.js"></script>
                <script src="{JS_PATH}my/jquery.superslide.2.1.1.js"></script>
                <div class="gr-tab-list">
                    <div class="hd">
                        <ul>
                            <li class="on">Details</li>
                            <li>PDF Download</li>
                        </ul>
                    </div>
                    <div class="bd">
                        <div class="tab-list">
                           {$content}
                        </div>
                        <div class="tab-list">
                            <div class="ziliao">
                                {pc:get sql="select file FROM sy_product_data where id=$id" return="data" moreinfo="1"}
                                {loop $data $r}
                                {php $all=string2array($r[file])}
                                {loop $all $c}
                                <li><span>{$c[filename]}.pdf</span><a href="{$c[fileurl]}" download="{$c[filename]}"><span style="padding-right:10px;">下载</span><img src="{IMG_PATH}my/xiazai.jpg" alt=""></a></li>
                                {/loop}
                                {/loop}
                                {/pc}

                            </div>
                        </div>
                        <script type="text/javascript">
                            /* 产品说明标签切换 */
                            jQuery(".gr-tab-list").slide({delayTime:0});
                            jQuery(".gr-sidebar-two").slide({mainCell:".bd ul",autoPlay:true,effect:"topMarquee",vis:3,interTime:50,trigger:"click"});
                        </script>
                    </div>

                    <!-- 产品定购 -->
                   <!-- <div class="orderBox" id="order">
                        <div class="recTitle">Purchase：{$title}</div>
                        <div class="orderTable">
                            <form name="form" id="form">
                                <input type="hidden" name="pro" value="{$title}">
                                <div class="tableRow"><span>Name</span><input class="rowInput" type="text" placeholder=""  name="username" /></div>
                                <div class="tableRow"><span>Phone</span><input class="rowInput" type="text" placeholder="" name="phone" /></div>
                                <div class="tableRow"><span>Email</span><input class="rowInput" type="text" placeholder="" name="email" /></div>
                                <div class="clear"></div>
                                <div class="tableRowA">
                                    <input type="hidden" name="ip" value="{php echo ip()}">
                                    <span>Message</span>
                                    <textarea placeholder="" class="rowTextarea" name="content" ></textarea>
                                </div>
                                <div class="tableRow grCode"><span>Code</span>
                                    <input class="rowInput" type="text" placeholder="" name="code" />
                                    {form::checkcode('code_img', '4', '14', 100, 30)}
                                </div>
                                <div class="clear"></div>
                                <div class="tableRow grCode pt15">
                                    <input type="hidden" name="dosubmit" value="1">
                                    <input class="subtA btn" type="button" value="Submit" id="submit">
                                    <input class="subtB" type="reset" value="Reset">
                                </div>
                            </form>
                        </div>
                    </div>-->

                    <script>
                        layui.use('layer',function(){
                            var layer=layui.layer;
                            $(".btn").click(function () {
                                $.ajax({
                                    url:"index.php?m=webman&c=liuyan&a=add",
                                    type:"post",
                                    data:$("#form").serialize(),
                                    success:function(msg){
                                        if(msg=='ok'){
                                            layer.msg('Success,Thanks！',{icon:1});
                                            location.reload()
                                        }else if(msg=='fail'){
                                            layer.msg('提交失败，请联系管理员',{icon:2});
                                        }else{
                                            layer.msg(msg,{icon:2})
                                        }
                                    }
                                })
                            });

                        })
                    </script>
                    <!-- 相关产品 -->
                    <div class="related-product">
                        <div class="title"><span>Related products</span></div>
                        <div class="related-product-list">
                            <ul>
                                {pc:content action="lists" catid="$catid" num="3"}
                                {loop $data $r}
                                <li>
                                    <a href="{$r[url]}" title="{$r[title]}"><img src="{$r[thumb]}" alt=""><span>{$r[title]}</span></a>
                                </li>
                                {/loop}
                                {/pc}
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>








    <div class="clear"></div>
{template "content","foot"}

